<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    
    <title>登录</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<meta http-equiv="content-type" content="text/html;charset=utf-8">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	
	-->


<style>
	.a{
		width:200px;
		height:500px;
		margin:100px auto;
		font-family:YouYuan;
	}
	body{
		background-image:url(${pageContext.request.contextPath}/images/loginbook.jpg);
	}
</style>
  </head>
  
  <body>
 <div class="a">
  <h3>用户登录</h3>
<p style="color: red; font-weight: 900">${msg }</p>

<form action="<c:url value='/UserServlet'/>" method="post" target="_top">
	<%-- 携带参数 --%>
	<input type="hidden" name="method" value="login"/>
	<input type="text" name="username" value="${form.username }" placeholder="请输入用户名"/>
	<span style="color: red; font-weight: 900">${errors.username }</span><br/>
	<input type="password" name="password" value="${form.password }" placeholder="请输入密码"/>
	<span style="color: red; font-weight: 900">${errors.password }</span><br/>
	<input type="submit" value="登录"/>
</form>
</div>
  </body>
</html>
